package com.itheima.myIO.homework.homework04;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test04 {
    /*
        请使用字节流，把“E:\itcast\窗里窗外.txt”文件，复制到模块目录下的“窗里窗外.txt”。
     */
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("D:\\itcast\\窗里窗外.txt");
        FileOutputStream fileOutputStream = new FileOutputStream("day12_file&字节流\\窗里窗外.txt");
        int b;
        while((b=fileInputStream.read())!=-1){
            fileOutputStream.write(b);
        }
        fileInputStream.close();
        fileOutputStream.close();
    }
}
